package com.llpy.mapper;

import com.llpy.pojo.Comment;
import com.llpy.pojo.Song;
import com.llpy.pojo.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentMapper extends MongoRepository<Comment,String> {
   Page<Comment> findByContentRegex(String regex, Pageable pageable);
   Page<Comment> findByRoot(int root, Pageable pageable);
}
